package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.MemberRechargeEntity;
import com.dragon.modules.yuegou.enums.wallet.MemberRechargePayCurrency;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员钱包充值模型类
 * 
 * @author pbuilder generated
 * @date 2019-06-03 15:20:36
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberRecharge extends MemberRechargeEntity {

	/**
	 * 构造一个空会员钱包充值模型对象
	 */
	public MemberRecharge(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员钱包充值模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberRecharge(MemberRechargeEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员钱包充值模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberRecharge(MemberRecharge other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MemberRecharge id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public MemberRecharge orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID（冗余ID）
	 * 
	 * @param memberId 会员ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberRecharge memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getMemberWalletId() {
    	return memberWalletId;
    }

    /**
	 * 设置会员钱包ID（冗余ID）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberRecharge memberWalletId(String memberWalletId) {
    	this.memberWalletId = memberWalletId;
    	return this;
    }

	@Override
	public BigDecimal getAmount() {
    	return amount;
    }

    /**
	 * 设置充值的悦币额度
	 * 
	 * @param amount 充值的悦币额度
	 * @return 当前对象
	 */
    public MemberRecharge amount(BigDecimal amount) {
    	this.amount = amount;
    	return this;
    }

	@Override
	public BigDecimal getAmountBefore() {
    	return amountBefore;
    }

    /**
	 * 设置充值前悦币余额
	 * 
	 * @param amountBefore 充值前悦币余额
	 * @return 当前对象
	 */
    public MemberRecharge amountBefore(BigDecimal amountBefore) {
    	this.amountBefore = amountBefore;
    	return this;
    }

	@Override
	public BigDecimal getAmountAfter() {
    	return amountAfter;
    }

    /**
	 * 设置充值后悦币余额
	 * 
	 * @param amountAfter 充值后悦币余额
	 * @return 当前对象
	 */
    public MemberRecharge amountAfter(BigDecimal amountAfter) {
    	this.amountAfter = amountAfter;
    	return this;
    }

	@Override
	public BigDecimal getPayFee() {
    	return payFee;
    }

    /**
	 * 设置支付的金额
	 * 
	 * @param payFee 支付的金额
	 * @return 当前对象
	 */
    public MemberRecharge payFee(BigDecimal payFee) {
    	this.payFee = payFee;
    	return this;
    }

	@Override
	public MemberRechargePayCurrency getPayCurrency() {
    	return payCurrency;
    }

    /**
	 * 设置[枚举]用于购买悦卡的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * 
	 * @param payCurrency [枚举]用于购买悦卡的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * @return 当前对象
	 */
    public MemberRecharge payCurrency(MemberRechargePayCurrency payCurrency) {
    	this.payCurrency = payCurrency;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置到账时间
	 * 
	 * @param createdTime 到账时间
	 * @return 当前对象
	 */
    public MemberRecharge createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getThirdMchId() {
    	return thirdMchId;
    }

    /**
	 * 设置第三方商户号，与第三方商户号发生交易时存在，示例：微信商户号 wx_1501780391，微信服务商商户号 wx_1505108951_1533645041，支付宝商户号：ali_2088331430099501
	 * 
	 * @param thirdMchId 第三方商户号，与第三方商户号发生交易时存在，示例：微信商户号 wx_1501780391，微信服务商商户号 wx_1505108951_1533645041，支付宝商户号：ali_2088331430099501
	 * @return 当前对象
	 */
    public MemberRecharge thirdMchId(String thirdMchId) {
    	this.thirdMchId = thirdMchId;
    	return this;
    }
}
